package io.renren.modules.business.service.impl;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.business.dao.RichtextContentDao;
import io.renren.modules.business.entity.RichtextContentEntity;
import io.renren.modules.business.service.RichtextContentService;


@Service("richtextContentService")
public class RichtextContentServiceImpl extends ServiceImpl<RichtextContentDao, RichtextContentEntity> implements RichtextContentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RichtextContentEntity> page = this.page(
                new Query<RichtextContentEntity>().getPage(params),
                new QueryWrapper<RichtextContentEntity>()
        );


        return new PageUtils(page);
    }


}
